# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=yass
pkgver=2.4.3
pkgrel=1
pkgdesc="Karaoke Editor"
url="https://yass-along.com/"
# blocked by openjdk11-jre-headless
arch="all !x86 !armhf !armv7 !riscv64"
license="GPL-3.0-or-later"
depends="openjdk11-jre"
makedepends="apache-ant openjdk8"
source="https://github.com/SarutaSan72/Yass/archive/refs/tags/$pkgver/yass-$pkgver.tar.gz
	yass
	"
builddir="$srcdir/Yass-$pkgver"
options="!check" # no tests provided

build() {
	JAVA_HOME="/usr/lib/jvm/java-8-openjdk" ant -f build-jar.xml compile jar
}

package() {
	install -Dm644 "$builddir"/release/yass-$pkgver.jar "$pkgdir"/usr/share/yass/yass.jar
	install -Dm755 "$srcdir"/yass "$pkgdir"/usr/bin/yass
}

sha512sums="
cb4c181a6f91e484040cc658ad79d129ed5942732536de1eff4046143dbaed12602ceef4805ed0a507963484d5087b4d2aa74c8214e88a05577d316b26f42d05  yass-2.4.3.tar.gz
7f8fb663aeef66e1659ac3e4bafa0aec9074e4caa2bf7894be28e33a6efbea1199cb47d19068f6637269636c8ab5e254486fad2113fad854d70df0dc78b7a305  yass
"
